package model;

import java.util.Set;


/**
 * this class contains all the information about the client
 * @author ran
 *
 */
public class UserInfo {
	private static UserInfo instance = new UserInfo();
	private String userName;
	private String pass;
	private String email;
	private Set<String> boxesList;
	private String DBUserName;
	private String DBPassword;
	public String getDBUserName() {
		return DBUserName;
	}
	public void setDBUserName(String dBUserName) {
		DBUserName = dBUserName;
	}
	public String getDBPassword() {
		return DBPassword;
	}
	public void setDBPassword(String dBPassword) {
		DBPassword = dBPassword;
	}
	/**
	 * @return an instance of this class
	 */
	public static UserInfo getInstance(){
		return instance;
	}
	/**
	 * @return the user name of the client
	 */
	public String getUserName() {
		return userName;
	}
	/**
	 * set method of the member userName
	 * @param userName the new value of userName
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	/**
	 * @return the password of the client
	 */
	public String getPass() {
		return pass;
	}
	/**
	 * set method of the member pass
	 * @param pass the new value of pass
	 */
	public void setPass(String pass) {
		this.pass = pass;
	}
	/**
	 * @return the email address of the client
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * set method of the member email
	 * @param email the new value of email
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	/**
	 * @return all shared folders of the client
	 */
	public Set<String> getBoxesList() {
		return boxesList;
	}
	/**
	 * set method of the member boxesList
	 * @param boxesList the new value of boxesList
	 */
	public void setBoxesList(Set<String> boxesList) {
		this.boxesList = boxesList;
	}
	public void addBox(String newFolderName) {
		boxesList.add(newFolderName);
		
	}
	
}

